package com.dr.domain;
import cn.hutool.json.JSON;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * </p>
 *
 * @author lynn
 * @since 2023-07-17
 */
@Data
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;
    /**
     * 登录名
     */
    @TableField("UserName")
    private String userName;
    /**
     * 密码
     */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @TableField("Password")
    private String password;
    /**
     * 真实姓名
     */
    @TableField("RealName")
    private String realName;
    /**
     * 用户类别
     */
    @TableField("UseType")
    private Integer useType;

    /**
     * 医生职称ID
     */
    @TableField("DocTitleID")
    private Integer docTitleID;

    /**
     * 是否参与排班
     */
    @TableField("IsScheduling")
    private String isScheduling;

    /**
     * 所在科室ID
     */
    @TableField("DeptId")
    private Integer deptID;

    /**
     * 挂号级别ID
     */
    @TableField("RegistLeID")
    private Integer registLeID;

    /**
     * 删除标记
     */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @TableLogic
    @TableField("DelMark")
    private Integer delMark;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Integer db;


}
